import request from '@/utils/request'

//获取字典定义列表
export function getDictDetailList(data) {
	return request({
		method: 'get',
		url: 'tbSysDictDetail/queryPageList',
		params: data,
	})
}

//添加字典定义
export function addedDictDetail(data) {
	return request({
		method: 'post',
		url: 'tbSysDictDetail/add',
		data,
	})
}

//修改字典定义
export function updateDictDetail(data) {
	return request({
		method: 'post',
		url: 'tbSysDictDetail/update',
		data,
	})
}

//删除字典定义
export function deleteDictDetail(id) {
	return request({
		method: 'get',
		url: 'tbSysDictDetail/delete/' + id,
	})
}

//获取字典定义详情
export function queryDictDetail(id) {
	return request({
		method: 'get',
		url: 'tbSysDictDetail/query/' + id,
	})
}